﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Water.Web.Controls.Office.Excel.Util
{
    public class Macro
    {
        /// <summary>
        /// 输出运行excel宏的VBScript语句
        /// </summary>
        /// <param name="macro">宏名</param>
        /// <returns>运行excel宏的VBScript语句</returns>
        public static string RunMacro( string macro)
        {
            string _ret="";
            if (!string.IsNullOrEmpty(macro))
                _ret = "Excel.run \"" + macro + "\"\n";
            return _ret;          
        }
    }
}
